﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace TwoGesture
{
    public partial class Login : Form
    {

        private ControlLogin ObjLogin=ControlLogin.InsConexion();

        public Login()
        {
            InitializeComponent();
        }

        private void BtnIniciar_Click(object sender, EventArgs e)
        {
            bool EstadoLogin=false;
            EstadoLogin=ObjLogin.IniciarSesion(this.txtusuario.Text.Trim().ToString(), this.txtcontraseña.Text.Trim().ToString());
            if (EstadoLogin)
            {
                this.Hide();
                EstadoLogin = false;
            }
        }

    }
}
